class Category < ActiveRecord::Base
  has_many :categorizations
  has_many :entries, :through => :categorizations, :order => "updated_at desc"
  
  def self.active_categories
    Category.find :all, :conditions => { :active => 1 }
  end
  
end
